package com.qczl.pme.controller;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.util.HtmlUtils;

import com.qczl.core.controller.BaseController;
import com.qczl.model.Json;
import com.qczl.pme.service.RecordingService;

/**
 * 录制控制器
 * @作者:SongR
 * @日期:2017年9月21日下午2:55:18
 */
@Controller
@RequestMapping(value="/recording")
public class RecordingController extends BaseController{
	Logger log = Logger.getLogger(this.getClass());
	@Autowired
	RecordingService service;
	/**
	 * 停止录制
	 * @作者:SongR
	 * @版本:v1
	 * @日期:2017年9月21日 下午3:04:28
	 */
	@ResponseBody
	@RequestMapping(value="/stop")
	public String stopV1(String cameraid,String taskid){
		try {
			String s = service.stopV1(cameraid,taskid);
			return HtmlUtils.htmlEscape(s);
		} catch (Exception e) {
			log.error("停止录制接口异常！",e);
		}
		return null;
	}
	
}
